from langchain_core.prompts import ChatPromptTemplate

prompt_template = ChatPromptTemplate.from_messages(
    [("system", "You are a helpful assistant"), ("user", "Tell me a joke about {topic}")])
resp = prompt_template.invoke({"topic": "cats"})

print(resp)
